<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>后台管理-首页</title>
</head>
<body>

    <table border="1" style="width: 500px;line-height: 30px;margin: 0 auto;">
        <tr>
            <th>序号</th>
            <th>姓名</th>
            <th>学号</th>
            <th>性别</th>
            <th>年龄</th>
            <th>身高</th>
            <th>班级</th>
            <th>教室</th>
            <th>操作</th>
        </tr>
        <?php foreach($students as $k => $v):?>
        <tr>
            <th><?php echo $k+1; ?></th>
            <th><?php echo $v['name']; ?></th>
            <th><?php echo $v['number']; ?></th>
            <th><?php echo $v['sex']; ?></th>
            <th><?php echo $v['age']; ?></th>
            <th><?php echo $v['height']; ?></th>
            <th><?php echo $v['c_name']; ?></th>
            <th><?php echo $v['room']; ?></th>
            <th>操作</th>
        </tr>
        <?php endforeach;?>

        <tr>
            <td colspan="9" align="center">
                <a href="index.php?page=1">首页</a>
                <a href="index.php?page=<?php echo $prev; ?>">上一页</a>
                <a href="index.php?page=<?php echo $next; ?>">下一个</a>
                <a href="index.php?page=<?php echo $pages; ?>">末页</a>
            </td>
        </tr>

    </table>

</body>
</html>